import hashlib

md5 = hashlib.md5()
md5.update("java javascript".encode("utf-8"))
print("md5 >>> ", md5.hexdigest())

sha1 = hashlib.sha1()
sha1.update("java javascript".encode("utf-8"))
print("sha1 >>>", sha1.hexdigest())